﻿using FastMvc.Crud.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace JQ.SAAS.DTO.SysOrganization
{
    /// <summary>
    /// 机构信息新建，修改用信息
    /// </summary>
    public class SysOrgCreateUpdateDto : DtoEntity
    {
        /// <summary>
        /// 机构代码
        /// </summary>     
        [Required]
        public string sOrgCode { get; set; }

        /// <summary>
        /// 机构名称
        /// </summary>  
        [Required]
        public string sOrgName { get; set; }

        /// <summary>
        /// 联系邮件地址
        /// </summary> 
        [EmailAddress]
        public string Email { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>      
        [Phone]
        public string Phone { get; set; }

        /// <summary>
        /// 机构地址
        /// </summary>           
        public string sAddress { get; set; }

        /// <summary>
        /// 联系人名称
        /// </summary>           
        public string sContract { get; set; }

        /// <summary>
        /// 资源数据库所在地址
        /// </summary>           
        public string DBConnection { get; set; }

        /// <summary>
        /// 资源数据库类型 0:Mysql，1:SqlServer
        /// </summary>           
        [EnumValue(0, 1)]
        public int? DBType { get; set; }

        /// <summary>
        /// 数据库备份地址
        /// </summary>           
        public string DBSlaveConnection { get; set; }
    }
}
